﻿using LiveChartsCore.SkiaSharpView.Painting;
using SkiaSharp;
using WpfExtensions.Xaml.Converters;

namespace FileTransferDesktop.Converters;

public class ColorToSkPaintConverter : ValueConverterBase<Color, SolidColorPaint>
{
    protected override SolidColorPaint ConvertNonNullValue(Color color)
    {
        var skColor = new SKColor(color.R, color.G, color.B, color.A);
        return new SolidColorPaint(skColor);
    }
}
